package com.xbts.common.enums;

/**
 * 延迟队列业务枚举
 */
public enum RedisDelayQueueEnum {

    CN_BALANCE_ORDER_CANCEL("CN_BALANCE_ORDER_CANCEL","订单支付超时，自动取消订单", "orderPaymentTimeout"),
    UPDATE_CLOUD_SERVICE_JSON_STR("UPDATE_CLOUD_SERVICE_JSON_STR","更新服务器配置信息", "cnUserCloudServersRelationServiceImpl"),
    ;

    /**
     * 延迟队列 Redis Key
     */
    private String code;
 
    /**
     * 中文描述
     */
    private String name;
 
    /**
     * 延迟队列具体业务实现的 Bean
     * 可通过 Spring 的上下文获取
     */
    private String beanId;

    RedisDelayQueueEnum() {
    }

    RedisDelayQueueEnum(String code, String name, String beanId) {
        this.code = code;
        this.name = name;
        this.beanId = beanId;
    }

    public String getCode() {
        return code;
    }

    public String getName() {
        return name;
    }

    public String getBeanId() {
        return beanId;
    }
}